from django.conf.urls import url,include
from django.contrib import admin
from . import views

urlpatterns = [

    url(r'^address/$', views.AddressView.as_view(),name='address'),
    url(r'^areas/$', views.AreasView.as_view(),name='areas'),
    #新增地址
    url(r'^addresses/create/$', views.CreateAddressView.as_view(),name='create'),
    #修改地址
    url(r'^addresses/(?P<address_id>\d+)/$', views.PutAddressView.as_view()),

    #设置默认地址
    url(r'^addresses/(?P<address_id>\d+)/default/$', views.DefaultAddressView.as_view()),
    #修改标题
    url(r'^addresses/(?P<address_id>\d+)/title/$', views.TitleView.as_view()),




]